package com.origin.onlinesys.persistence.modules.sys.account;

import com.github.abel533.mapper.Mapper;
import com.origin.onlinesys.domain.modules.interviewsys.Role;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 用户角色
 * Created by Administrator on 2015/3/3.
 */
public interface RolesMapper extends Mapper<Role> {

    public Collection<String> selectAll();

    public Collection<String> selectByUserId(String id);

    //批量添加角色权限
    public void addRolePermission(List<Map> list);

    public List<Role> selectItem();

    public List<String> selectPIdByRId(String id);

    public void delRolePermission(String id);

    public Role selectById(String id);


    public List<Map<String,Object>> selectRoleMenu(String id);

    public List<Map> selectRoleByUser(String id);

}
